#!/bin/bash

if [ -d "./app-" ]
then
echo 'recover dir names...'
mv    ./net/linklayer/hpg_l2-  ./net/linklayer/hpg_l2
mv 	 ./net/linklayer/pppoe-    ./net/linklayer/pppoe 
mv 	 ./net/linklayer/mt-	   ./net/linklayer/mt	 
mv ./net/linklayer/lldp-	   ./net/linklayer/lldp	 	 
mv 	 ./driver/4esw-		   	   ./driver/4esw		 
mv 	 ./driver/router_drv-	   ./driver/router_drv	 
mv 	 ./driver/hpg_common-	   ./driver/hpg_common	 
mv  	 ./app-                ./app                   
else
echo 'rename dir names to avoid compile...'
mv ./net/linklayer/hpg_l2   ./net/linklayer/hpg_l2- 
mv ./net/linklayer/pppoe	 ./net/linklayer/pppoe-  
mv ./net/linklayer/mt		 ./net/linklayer/mt-	   
mv ./net/linklayer/lldp	 ./net/linklayer/lldp-
mv ./driver/4esw			 ./driver/4esw-		   
mv ./driver/router_drv		 ./driver/router_drv-	   
mv ./driver/hpg_common		 ./driver/hpg_common-	   
mv ./app                  	 ./app-                  

fi

